/**
 * 
 */
package org.mips.Sirius.provider;

/**
 * @author mips
 * 
 */
public class ProviderException extends Exception {

	Exception cause;
	String message;

	public ProviderException(Exception cause, String message) {
		this.cause = cause;
		this.message = message;
	}

	public ProviderException(String message) {
		this(new Exception(message), message);
	}

	@Override
	public Throwable getCause() {
		return cause;
	}

	@Override
	public String getMessage() {
		return message;
	}

	private static final long serialVersionUID = 1L;

}
